<script setup>

</script>

<template>
    <div class="app">
        <el-dialog v-model="dialogFormVisible" title="新增文章" width="500">
            <el-form :model="form">
                <el-form-item label="分类" :label-width="140">
                    <el-input v-model="form.name" autocomplete="off" />
                </el-form-item>
                <el-form-item label="标题" :label-width="140">
                    <el-input v-model="form.tag" placeholder="请输入文章标题">
                    </el-input>
                </el-form-item>
            </el-form>
            <template #footer>
                <div class="dialog-footer">
                    <el-button @click="dialogFormVisible = false">取消</el-button>
                    <el-button type="primary" @click="dialogFormVisible = false; addNews()">
                        提交
                    </el-button>
                </div>
            </template>
        </el-dialog>
    </div>
</template>


<style scoped></style>